/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cc.altius.service.impl;

import cc.altius.dao.SpecialistDao;
import cc.altius.model.AppSpecialist;
import cc.altius.model.Hospital;
import cc.altius.model.Specialist;
import cc.altius.model.SpecialistType;
import cc.altius.service.SpecialistService;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author santosh
 */
@Service("SpecialistService")
public class SpecialistServiceImpl implements SpecialistService{
    @Autowired
    private SpecialistDao specialistDao;

    @Override
    public void addSpecialist(Specialist specialist) {
        this.specialistDao.addSpecialist(specialist);
    }

    @Override
    public List<Specialist> getspecialistList() {
        return this.specialistDao.getspecialistList();
    }

    @Override
    public List<SpecialistType> getspecialistTypeList() {
        return  this.specialistDao.getspecialistTypeList();
    }

    @Override
    public List<Hospital> getHospitalList() {
        return  this.specialistDao.getHospitalList();
    }

    @Override
    public Specialist getSpecialistBySpecialistId(int specialistId) {
        return  this.specialistDao.getSpecialistBySpecialistId(specialistId);
    }

    @Override
    public int updateSpecialist(Specialist specialist) {
        return  this.specialistDao.updateSpecialist(specialist);
    }

    @Override
    public List<Map<String, Object>> getFilterSpecialist(int specialistTypeId, int zoneId ,int hospitalId) {
        return  this.specialistDao.getFilterSpecialist(specialistTypeId,zoneId,hospitalId);
    }

    @Override
    public int addAppSpecialist(AppSpecialist appSpecialist) {
       return this.specialistDao.addAppSpecialist(appSpecialist);
    }

    @Override
    public List<AppSpecialist> getAppSpecialistList() {
        return this.specialistDao.getAppSpecialistList();
    }

    @Override
    public AppSpecialist getAppSpecialistByAppSpecialistId(int appSpecialistId) {
        return this.specialistDao.getAppSpecialistByAppSpecialistId(appSpecialistId);
    }

    @Override
    public int updateAppSpecialist(AppSpecialist appSpecialist) {
        return this.specialistDao.updateAppSpecialist(appSpecialist);
    }

    @Override
    public List<Map<String, Object>> getFilterAppSpecialist(int specialistTypeId) {
        return this.specialistDao.getFilterAppSpecialist(specialistTypeId);
    }

    @Override
    public List<AppSpecialist> AppSpecialistListForAutoComplete(String appSpecialistName) {
        return this.specialistDao.AppSpecialistListForAutoComplete(appSpecialistName);
    }

    @Override
    public List<Specialist> SpecialistListForAutoComplete(String specialistName) {
        return this.specialistDao.SpecialistListForAutoComplete(specialistName);
    }

}
